import request from "@/utils/request"

// 分页查询
export const pageFindAll = (name,pageNum,pageSize,status) => request.get(`/serve/project/list?name=${name}&pageNum=${pageNum}&pageSize=${pageSize}&status=${status}`)

// 添加
export const saveProject = (data) => request.post(`/serve/project`,data)

// 删除
export const deleteProject = (id) => request.delete(`/serve/project/${id}`)

// 编辑
export const updateProject = (data) => request.put(`/serve/project`,data)

// 根据id查询
export const getProjectById = (id) => request.get(`/serve/project/${id}`)